package com.situ.company.web220111.employee.service;

import com.situ.company.web220111.employee.model.EmployeeModel;

import java.util.List;

public interface IEmployeeService {
    /**
     * 添加记录
     *
     * @param model
     * @return String
     */
    String insert(EmployeeModel model);

    /**
     * 根据主键删除
     *
     * @param model
     * @return String
     */
    String deleteByCode(EmployeeModel model);

    String delete(EmployeeModel model);

    /**
     * 根据主键修改字段
     *
     * @param model
     * @return String
     */
    String updateAll(EmployeeModel model);

    /**
     * 根据主键修改部分字段
     *
     * @param model
     * @return
     */
    String update(EmployeeModel model);

    /**
     * 根据多条件模糊查询记录
     *
     * @param model
     * @return List<DepartmentModel>
     */
    List<EmployeeModel> selectList(EmployeeModel model);

    /**
     * 根据主键查询一条记录
     *
     * @param model
     * @return DepartmentModel
     */
    EmployeeModel selectModel(EmployeeModel model);

    /**
     * 登陆功能
     * @param model
     * @return String 0=账号不存在  1=登陆成功  2=密码错误
     */
    String login(EmployeeModel model);

    Integer selectCount(EmployeeModel model);

    String resetPass(EmployeeModel parseModel);

    String updPass(EmployeeModel parseModel);

    String setDept(EmployeeModel model);

    String delPic(EmployeeModel parseModel);
}
